package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.Proxy;
import org.darkforest.model.StatProxy;

import java.util.List;
import java.util.Map;

@DBMapper
public interface StatProxyMapper {
    int deleteByPrimaryKey(Integer statpId);

    int insert(StatProxy record);

    int insertSelective(StatProxy record);

    StatProxy selectByPrimaryKey(Integer statpId);

    int updateByPrimaryKeySelective(StatProxy record);

    int updateByPrimaryKey(StatProxy record);

    StatProxy selectByProxyId(Integer proxy_id);

    public int clearTeamCnt();

    public int batchUpdateTeamCnt(List<Proxy> proxyList);

    public List<Integer> getLeafParent();

    public List<Proxy> getParentProxyTeamCnt(Integer proxy_layer);

}